import Vue from 'vue'
import App from './App.vue'
import router from './router'
import {Tabbar,TabbarItem,Search,Swipe,SwipeItem} from 'vant'
import httpRequest from './common/request.js'
import {Image as VanImage,Lazyload } from 'vant'
import {NavBar,List} from 'vant'
import {Tabs,Tab} from 'vant'
import store from './store'
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(VanImage);
Vue.use(NavBar);
Vue.use(List);
Vue.use(Tabs)
Vue.use(Tab)


Vue.use(Lazyload);
Vue.config.productionTip = false
Vue.config.productionTip=false;
Vue.prototype.$request=httpRequest
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
Vue.filter("numFilter",(value)=>{
  if (value> 100000000){
    return (value/100000000).toFixed(2)+"亿"
  } else if(value>10000){
    return (value/10000).toFixed(2)+"w"
  }
})